package com.xdcplus.web.common.enums;

import org.aspectj.weaver.ast.Not;

/**
 * @Description
 * @Author xyy
 * @Date 2023/5/8 14:10
 */
public enum FloralBasketStatusEnum {
    NOT_DELIVERED("1", "未下发"),
    HAS_BEEN_ISSUED("2", "已下发"),
    IN_COMMISSION("3", "执行中"),
    COMPLETED("4", "执行完成"),
    CANCEL("5", "任务取消"),
    ;

    private String code;

    private String msg;

    public static String getMsg(String code) {
        for (FloralBasketStatusEnum ele : values()) {
            if (ele.getCode().equals(code)) {
                return ele.getMsg();
            }
        }
        return null;
    }

    FloralBasketStatusEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
